home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / adult_ed / foodbar / foodbar.doc < prev    next >
Text File  |  1995-05-02  |  9KB  |  171 lines

  1.                           FOODBAR.DOC
  2.  
  3. This program provides a database of nutrients for various foods. It allows you
  4. to use this database to keep track of how much of each nutrient you have
  5. ingested over a period of time, normally one day, so you can compare the amount
  6. with the recommended daily allowance. Or you can use it to plan your meals.
  7. Within limits, you can add foods to the provided data file named FOOD_1 DAT.
  8.  
  9. The program is menu driven and, except for data entry, all menu selections are
  10. acted on immediately, carriage returns are not entered. Just enter a number
  11. from the main menu and you'll be guided with prompts that take you thru the
  12. particular function until you get back to the main menu again. 
  13.  
  14. When you run the program, it looks for a file named FOOD_1.DAT and loads it if
  15. it's found. Otherwise, you'll have to explicitly load (#7 on the menu) a data
  16. file. If you want FOOD_1.DAT to load automatically, keep it in the same
  17. directory from which you invoke FOODBAR.TOS.
  18.  
  19. For various functions you'll be asked to enter the food description or search
  20. pattern. The description is the food name but you may search for a part of a
  21. name. You may enter 'broiled' or even 'broi' and get such things as 'chicken,
  22. broiled' and 'halibut, broiled' etc. When asked to enter a pattern to search
  23. for, be aware the program is case sensitive. I've entered all food names in
  24. lower case, and recommend you do the same for consistency. So, always use lower
  25. case for your search pattern. 
  26.  
  27.  
  28. THE ACCUMULATOR_________________________________________________________
  29.  
  30. Central to the process of using the program is the accumulator which keeps a
  31. running total of the nutrients. Pick '1' from the main menu and you'll be asked
  32. to enter the name of the food whose nutrients you want to add to the total. Say
  33. you drank a glass of milk at lunch, just enter...milk... at the prompt and you
  34. will be shown a list of all foods that have 'milk' in their name. They will be
  35. displayed 20 at a time (if there are that many) and when you see the one that
  36. applies, enter its number.
  37.  
  38. Next you'll see a prompt that asks how much of that food you ate. The amount you
  39. enter here will proportion the quantities in the database and add these new
  40. values to the accumulator. This prompt displays 3 values from the database,
  41. quantity, measure and the food name, in that order. Since these values are taken
  42. right from the database the syntax of the prompt will usually seem a bit odd,
  43. but you should be able to determine what's being asked of you. In some cases
  44. the quantity will be displayed in an odd measurement like 6.4 oz., but the name
  45. of the food will contain the implicit unit of measure. So, in this case look
  46. at the entire prompt and it will say something like...5.3 oz. of banana, 1
  47. medium...;  1 medium banana is the implicit unit of measure. 
  48.  
  49. Quantity and measure are meant to be read together even though they appear on
  50. separate rows in the listings. For many foods it seems more convenient to
  51. ignore these two items; it makes more sense to talk about 1 medium banana than
  52. so many ounces of banana. You can recognize such foods in the provided data by
  53. their odd ounce measurement (1 banana is 5.3 oz..) and by the fact that the
  54. intended measure is stated as part of the name (banana, 1 medium). Just
  55. remember to look at the name for this additional info and don't struggle to
  56. figure the ounces.
  57.  
  58. If you added an incorrect food to the accumulator, you can subtract it by going
  59. thru the process again but using a negative (with the -, minus, sign) of the
  60. quantity your trying to correct. Say, if you entered 2 when asked how many cups
  61. of milk you ate, pick 'Add to accumulator' again, search for the same food again
  62. milk), but this time enter -2 when asked 'How many...'. Of course, you can use
  63. the same trick to make small adjustments too; like if you drank 1 instead of 2
  64. cups of milk you would enter -1 in this case and 1 cup of milk will be
  65. subtracted from the accumulator. 
  66.  
  67. The 'Accumulator submenu' item in the main menu lets you clear (zero) the
  68. accumulator to start a new series of totals. Since the accumulator values are
  69. stored along with the database and since it is not cleared automatically when
  70. the program is run, be sure to zero it when you want a fresh start. You can save
  71. and load the accumulator separately using this submenu; no need to save the
  72. entire database just to save the accumulator. Just remember that the default
  73. accumulator values are the ones attached to the database when it's loaded.
  74. Using the submenu for saving allows more than one person to maintain their own
  75. totals. 
  76.  
  77. DISPLAY/PRINT A FOOD____________________________________________________
  78.  
  79. You may display the values for a particular food or the current total in the
  80. accumulator by choosing #2 from the main menu. If it's the accumulator you want
  81. to view just hit the return; else enter the name (or a part of a name) of the
  82. food desired and pick the desired food from the list. You will then be asked if
  83. if you want the output to go to the printer or a disk file; the default answer
  84. is no (that's what the [n] stands for), so just hit return if you want the
  85. output to go to the screen.
  86.  
  87. If you want it to go to the printer, turn on your printer and type in lst:
  88. (note the colon) and press return. If you want it to go to a disk file so you
  89. can edit it, type in a filename and press return; the data will be written to a
  90. disk file. WARNING: this program does not check for existing files of the same
  91. name so be sure the filename you type does not already exist or you will lose
  92. that file, it will be over-written.
  93.  
  94. ENTER/DELETE FOODS_________________________________________________________
  95.  
  96. With this minimal version you are allowed to add just a few more foods to the
  97. data file. You're not allowed to delete any foods so keep a copy of the
  98. original FOOD_1.DAT. To receive the full version see the note at the end of
  99. this doc.
  100.  
  101. When entering new foods, I suggest you enter a space somewhere in the name (at
  102. the end is fine). Spaces count as part of the 30 character limit but chances are
  103. that if you use that many characters, there will be a space in there somewhere.
  104. With a space in the name it becomes easy to list all of the foods by using a
  105. single space as the search pattern.  
  106.  
  107. When entering the values for the nutrients, if you enter a 'non-number' you'll
  108. be warned. In such a case a value of zero will be assigned to that nutrient and
  109. you'll be allowed to continue. If zero is what you intended to enter, just
  110. finish all entries and the food values will be stored normally. If zero is wrong
  111. you'll still have to finish entering all values, but you should to answer <n>o
  112. to '...values correct?' and it will not be added to the database. You can then
  113. reenter that food.
  114.  
  115. In the data I've provided, I've used the amount of .05 for those nutrients known
  116. to be present in 'trace' amounts since I don't know what the actual amounts are.
  117. The value of .05 is really insignificant but serves as a reminder that there is
  118. something there. For all practical purposes decimal amounts can be ignored.
  119.  
  120. Depending on where you get the data you enter, some of the nutrients that I've
  121. used will not be listed for some foods. All I can suggest is that you enter zero
  122. for a nutrient that's not given and consider the totals in the accumulator as
  123. minimum values (you're getting AT LEAST that much of a particular nutrient). The
  124. most common source of this data will probably be the labels on food containers.
  125.  
  126. If you've used the 'Add a food...' selection from the main menu and you have not
  127. saved the changes (even if there was no net change), you'll be warned if you
  128. try to exit the program. Entering data is not a whole lot of fun, so please
  129. remember to save your work. 
  130.  
  131. MISC.______________________________________________________________________
  132.  
  133. If you happen to select the wrong menu number or if you change your mind and 
  134. want to exit a menu, a press or two of the return key should get you back to the
  135. main menu.
  136.  
  137. I'm pretty sure I have the program well 'error trapped'; I don't want you being
  138. bounced out before you've had a change to save your data. But if you encounter
  139. such a problem, please let me know about it.
  140.  
  141. You now have the minimal version of this program and if you want one that does
  142. more as well as a larger database, you can send $10 to the address below. Or
  143. you can send $6 a disk and, unless you don't mind budget packaging, a reusable
  144. mailer. 
  145.  
  146. ===============================================================================
  147.  
  148. This program was compiled using OSS Personal Pascal, so portions of it are
  149. COPYRIGHT (c) 1986, 1987 by Optimized Systems Software, Inc. and CCD.
  150.  
  151. COPYRIGHT (c) 1989 by Alex Fetesoff. This program is shareware and as such 
  152. may be distributed freely but not for profit. With such distribution must be 
  153. included the above documentation and this paragraph. I disclaim any warranties, 
  154. expressed or implied, including any warranties of merchantability, performance, 
  155. and suitability for any purpose with respect to this software and documentation.
  156.  
  157. But I hope you like it anyway!
  158.  
  159. If you have questions or comments, send email to...
  160.  
  161. DELPHI: alexf
  162. GENIE: alex.f
  163. CompuServe: 72277,1607.
  164. UUCP: ...ames!pacbell!sactoh0!alexf
  165.  
  166. Hard mail to:
  167.  
  168. Alex Fetesoff
  169. P.O. Box 163681
  170. Sacramento, CA 95816
  171.